﻿using System.Configuration;

namespace Higgs.Web.AtomPub.Configurations
{
    public class AcceptTypeElement : ConfigurationElement
    {
        public AcceptTypeElement() {}

        public AcceptTypeElement(string extension, string mimeType)
        {
            this["extension"] = extension;
            this["mimeType"] = mimeType;
        }

        [ConfigurationProperty("extension", IsRequired=true)]
        public string Extension
        {
            get { return (string) this["extension"]; }
            set { this["extension"] = value; }
        }

        [ConfigurationProperty("mimeType", IsRequired=true)]
        public string MimeType
        {
            get { return (string) this["mimeType"]; }
            set { this["mimeType"] = value; }
        }
    }
}
